<% if @topics.empty? %>
  <p><%= t :empty, :scope => [:helpers, :messages, :topic] %></p>
<% else %>
  <p class="gru-topics frame">
    <span class="gru-topics float theme"><b><%= t :theme, :scope => [:helpers, :headlines, :topic] %></b></span>
    <span class="gru-topics float author"><b><%= t :author, :scope => [:helpers, :headlines, :topic] %></b></span>
    <span class="gru-topics float updated"><b><%= t :last_activity, :scope => [:helpers, :headlines, :topic] %></b></span>
  </p>

  <% @topics.each do |topic| %>
    <p class="gru-topics frame item">
      <span class="gru-topics float theme"><%= link_to topic.name, project_topic_path(params[:project_id], topic) %></span>
      <span class="gru-topics float author"><%= topic.user.alias %></span>
      <span class="gru-topics float updated"><%= l(topic.updated_at, :format => :short) %></span>
    </p>
  <% end %>
<% end %>

<div class="gru-topics frame">
  <%= link_to (t :new, :scope => [:helpers, :navigation, :topic]), new_project_topic_path %>
</div>
